<div class="f_{$field.name|escape}">
<label for="f_{$field.name|escape}">
	{if isset($field.label)}{$field.label|escape}{else}{$field.name|escape}{/if}
</label>
<input type="file" name="{$field.name|escape}" id="f_{$field.name|escape}" class="imageInputField{if $field.value!=''} hidden{/if}" />
<input type="hidden" name="{$field.name|escape}_delete" value="0" />
{if $field.value_value!=''}
	<span class="imagePlace"><a href="{$field.object->getAttachmentsUrl()}{$field.value_value|escape}">{$field.value_value|escape}</a></span> 
	<a href="javascript:;" onclick="deletepic('{$field.name|escape}')" class="deliter">Delete</a>
	<a href="javascript:;" onclick="undeletepic('{$field.name|escape}')" class="deliter hidden">Undelete</a>
{/if}
</div>